<!--
 * @Author: cgl
 * @Date: 2023-06-19 10:06:51
 * @LastEditors: liangkun 2669681641@qq.com
 * @LastEditTime: 2023-12-21 10:27:26
 * @FilePath: \radiation-hygiene-fe\src\views\slide\components\testItem\testItem04.vue
 * @Description: 04-摄影通用检测项
 *
 * Copyright (c) 2023 by cgl/微盛信息产业有限公司, All Rights Reserved.
-->
<template>
  <div class="content">
		<div class="tip-30 forminput">
			统一检测条件：焦点至探头距离（SDD）为：SDD = <el-input v-model="form.sdd" class="input-line"/> cm。
		</div>

		<!-- 1.管电压指示的偏离---------------------------------------------------------------------------------- -->
		<div id="table1">
			<div class="innertitle">
				1.管电压指示的偏离
			</div>

			<table id="table1_form1" border="1" cellspacing="0" cellpadding="0" align="center">
				<tr>
					<td></td>
					<td width="100px">预置值</td>
					<!-- <td colspan="2">检测条件</td> -->
					<td colspan="3">管电压测量值（kV）</td>
					<td>平均值</td>
					<td rowspan="2" width="120px">相对固有误差I<br/>(%)</td>
					<td colspan="2">检测结果</td>
				</tr>
				<tr>
					<td width="100px">焦点</td>
					<td width="100px">管电压<i>$V_0$</i><br/>（kV）</td>
					<!-- <td>
						管电流/<br/>
						管电流时间积<br/>
						(<el-radio-group v-model="form1.tubeCurrentType" class="split-radio">
							<el-radio :label="0">mA</el-radio>
							<el-radio :label="1">mAs</el-radio>
						</el-radio-group>)
					</td>
					<td>
						曝光时间<i>$t_0$</i><br/>
						(s)
					</td> -->
					<td width="100px"><i>$V_1$</i></td>
					<td width="100px"><i>$V_2$</i></td>
					<td width="100px"><i>$V_3$</i></td>
					<td width="100px"><i>$\overline V_i$</i></td>
					<td width="100px">修正值<i>$V_k$</i>（kV）</td>
					<td width="100px"><i>$E_v$</i></td>
				</tr>

				<tr>
					<td rowspan="4">
						<el-radio-group v-model="form1.bigFocus" class="split-radio">
							<el-radio :label="2">大焦点</el-radio><br/>
							<el-radio :label="1">小焦点</el-radio><br/>
							<el-radio :label="0">无大小焦点</el-radio>
						</el-radio-group>
					</td>
					<td>
						<el-input v-model="form1.bigFocusPresets_1"/>
					</td>
					<!-- <td rowspan="4">
						<el-input v-model="form1.bigFocusTubeCurrent_value"/>
					</td>
					<td rowspan="4">
						<el-input v-model="form1.bigFocusTubeCurrent_s"/>
					</td> -->
					<td>
						<el-input v-model="form1.bigFocusValue_1_1"/>
					</td>
					<td>
						<el-input v-model="form1.bigFocusValue_1_2"/>
					</td>
					<td>
						<el-input v-model="form1.bigFocusValue_1_3"/>
					</td>
					<td class="result">
						{{ form1.bigFocusValueAvg_1 }}
					</td>
					<td class="result">
						<span>{{form1.bigFocusInherentError_1}}</span>
					</td>
					<td class="result">
						<span>{{form1.bigFocusCorrectedValue_1}}</span>
					</td>
					<td class="result">
						<span>{{form1.bigFocusDeviate_1}}</span>
						<span v-if="form1.bigFocusDeviate_1">{{form1.bigFocusPresets_1 > 100 ? '%' : 'kV'}}</span>
					</td>
				</tr>
				<tr>
					<td>
						<el-input v-model="form1.bigFocusPresets_2"/>
					</td>
					<td>
						<el-input v-model="form1.bigFocusValue_2_1"/>
					</td>
					<td>
						<el-input v-model="form1.bigFocusValue_2_2"/>
					</td>
					<td>
						<el-input v-model="form1.bigFocusValue_2_3"/>
					</td>
					<td class="result">
						{{ form1.bigFocusValueAvg_2 }}
					</td>
					<td class="result">
						<span>{{form1.bigFocusInherentError_2}}</span>
					</td>
					<td class="result">
						<span>{{form1.bigFocusCorrectedValue_2}}</span>
					</td>
					<td class="result">
						<span>{{form1.bigFocusDeviate_2}}</span>
						<span v-if="form1.bigFocusDeviate_2">{{form1.bigFocusPresets_2 > 100 ? '%' : 'kV'}}</span>
					</td>
				</tr>
				<tr>
					<td>
						<el-input v-model="form1.bigFocusPresets_3"/>
					</td>
					<td>
						<el-input v-model="form1.bigFocusValue_3_1"/>
					</td>
					<td>
						<el-input v-model="form1.bigFocusValue_3_2"/>
					</td>
					<td>
						<el-input v-model="form1.bigFocusValue_3_3"/>
					</td>
					<td class="result">
						{{ form1.bigFocusValueAvg_3 }}
					</td>
					<td class="result">
						<span>{{form1.bigFocusInherentError_3}}</span>
					</td>
					<td class="result">
						<span>{{form1.bigFocusCorrectedValue_3}}</span>
					</td>
					<td class="result">
						<span>{{form1.bigFocusDeviate_3}}</span>
						<span v-if="form1.bigFocusDeviate_3">{{form1.bigFocusPresets_3 > 100 ? '%' : 'kV'}}</span>
					</td>
				</tr>
				<tr>
					<td>
						<el-input v-model="form1.bigFocusPresets_4"/>
					</td>
					<td>
						<el-input v-model="form1.bigFocusValue_4_1"/>
					</td>
					<td>
						<el-input v-model="form1.bigFocusValue_4_2"/>
					</td>
					<td>
						<el-input v-model="form1.bigFocusValue_4_3"/>
					</td>
					<td class="result">
						{{ form1.bigFocusValueAvg_4 }}
					</td>
					<td class="result">
						<span>{{form1.bigFocusInherentError_4}}</span>
					</td>
					<td class="result">
						<span>{{form1.bigFocusCorrectedValue_4}}</span>
					</td>
					<td class="result">
						<span>{{form1.bigFocusDeviate_4}}</span>
						<span v-if="form1.bigFocusDeviate_4">{{form1.bigFocusPresets_4 > 100 ? '%' : 'kV'}}</span>
					</td>
				</tr>

				<tr>
					<td rowspan="4">
						<el-radio-group v-model="form1.smallFocus" class="split-radio">
							<el-radio :label="2">大焦点</el-radio><br/>
							<el-radio :label="1">小焦点</el-radio><br/>
							<el-radio :label="0">无大小焦点</el-radio>
						</el-radio-group>
					</td>
					<td>
						<el-input v-model="form1.smallFocusPresets_1"/>
					</td>
					<!-- <td rowspan="4">
						<el-input v-model="form1.smallFocusTubeCurrent_value"/>
					</td>
					<td rowspan="4">
						<el-input v-model="form1.smallFocusTubeCurrent_s"/>
					</td> -->
					<td>
						<el-input v-model="form1.smallFocusValue_1_1"/>
					</td>
					<td>
						<el-input v-model="form1.smallFocusValue_1_2"/>
					</td>
					<td>
						<el-input v-model="form1.smallFocusValue_1_3"/>
					</td>
					<td class="result">
						{{ form1.smallFocusValueAvg_1 }}
					</td>
					<td class="result">
						<span>{{form1.smallFocusInherentError_1}}</span>
					</td>
					<td class="result">
						<span>{{form1.smallFocusCorrectedValue_1}}</span>
					</td>
					<td class="result">
						<span>{{form1.smallFocusDeviate_1}}</span>
						<span v-if="form1.smallFocusDeviate_1">{{form1.smallFocusPresets_1 > 100 ? '%' : 'kV'}}</span>
					</td>
				</tr>
				<tr>
					<td>
						<el-input v-model="form1.smallFocusPresets_2"/>
					</td>
					<td>
						<el-input v-model="form1.smallFocusValue_2_1"/>
					</td>
					<td>
						<el-input v-model="form1.smallFocusValue_2_2"/>
					</td>
					<td>
						<el-input v-model="form1.smallFocusValue_2_3"/>
					</td>
					<td class="result">
						{{ form1.smallFocusValueAvg_2 }}
					</td>
					<td class="result">
						<span>{{form1.smallFocusInherentError_2}}</span>
					</td>
					<td class="result">
						<span>{{form1.smallFocusCorrectedValue_2}}</span>
					</td>
					<td class="result">
						<span>{{form1.smallFocusDeviate_2}}</span>
						<span v-if="form1.smallFocusDeviate_2">{{form1.smallFocusPresets_2 > 100 ? '%' : 'kV'}}</span>
					</td>
				</tr>
				<tr>
					<td>
						<el-input v-model="form1.smallFocusPresets_3"/>
					</td>
					<td>
						<el-input v-model="form1.smallFocusValue_3_1"/>
					</td>
					<td>
						<el-input v-model="form1.smallFocusValue_3_2"/>
					</td>
					<td>
						<el-input v-model="form1.smallFocusValue_3_3"/>
					</td>
					<td class="result">
						{{ form1.smallFocusValueAvg_3 }}
					</td>
					<td class="result">
						<span>{{form1.smallFocusInherentError_3}}</span>
					</td>
					<td class="result">
						<span>{{form1.smallFocusCorrectedValue_3}}</span>
					</td>
					<td class="result">
						<span>{{form1.smallFocusDeviate_3}}</span>
						<span v-if="form1.smallFocusDeviate_3">{{form1.smallFocusPresets_3 > 100 ? '%' : 'kV'}}</span>
					</td>
				</tr>
				<tr>
					<td>
						<el-input v-model="form1.smallFocusPresets_4"/>
					</td>
					<td>
						<el-input v-model="form1.smallFocusValue_4_1"/>
					</td>
					<td>
						<el-input v-model="form1.smallFocusValue_4_2"/>
					</td>
					<td>
						<el-input v-model="form1.smallFocusValue_4_3"/>
					</td>
					<td class="result">
						{{ form1.smallFocusValueAvg_4 }}
					</td>
					<td class="result">
						<span>{{form1.smallFocusInherentError_4}}</span>
					</td>
					<td class="result">
						<span>{{form1.smallFocusCorrectedValue_4}}</span>
					</td>
					<td class="result">
						<span>{{form1.smallFocusDeviate_4}}</span>
						<span v-if="form1.smallFocusDeviate_4">{{form1.smallFocusPresets_4 > 100 ? '%' : 'kV'}}</span>
					</td>
				</tr>

				<!-- <tr>
					<td>
						<el-input v-model="form1.commonPresets"/>
					</td>
					<td>
						<el-input v-model="form1.commonCondition_value"/>
					</td>
					<td>
						<el-input v-model="form1.commonCondition_s"/>
					</td>
					<td>临床常用</td>
					<td>
						<el-input v-model="form1.commonValue_1"/>
					</td>
					<td>
						<el-input v-model="form1.commonValue_2"/>
					</td>
					<td>
						<el-input v-model="form1.commonValue_3"/>
					</td>
					<td class="result">
						{{ form1.commonValueAvg }}
					</td>
					<td class="result">
						<span>{{form1.commonInherentError}}</span>
					</td>
					<td class="result">
						<span>{{form1.commonCorrectedValue}}</span>
					</td>
					<td class="result">
						<span>{{form1.commonDeviation}}</span>
						<span v-if="form1.commonDeviation">{{form1.commonPresets > 100 ? '%' : 'kV'}}</span>
					</td>
				</tr> -->
			</table>

			<div class="tip-50">
				<i>
					管电压偏离：$E_{v} = V_k - V_0( V_0 < 100kV )$；
					管电压校准：$\frac {V_k - V_0}{V_0}(V_0 ≥ 100kV)$
				</i>
			</div>
		</div>

		<!-- 2.辐射输出量重复性：------------------------------------------------------------------ -->
		<div id="table4">
			<div class="innertitle">
				2.辐射输出量重复性：
			</div>
			<div class="tip-30">
				曝光条件：<el-input v-model="form4.tubeVoltage" class="input-line"/> kV,
				<el-input v-model="form4.tubeCurrent_mA" class="input-line"/>mA,
				<el-input v-model="form4.exposureTime" class="input-line"/>s,
				<el-input v-model="form4.tubeCurrent_mAs" class="input-line"/>mAs
				<!-- 焦点：<el-input v-model="form4.tubeCurrent" class="input-line"/> -->
				焦点：<el-radio-group v-model="form4.focus" class="split-radio">
					<el-radio :label="2">大焦点</el-radio>
					<el-radio :label="1">小焦点</el-radio>
					<el-radio :label="0">无大小焦点</el-radio>
				</el-radio-group>；
			</div>

			<table border="1" cellspacing="0" cellpadding="0" align="center">
				<tr>
					<td colspan="5" width="43%">
            空气比释动能值<br/>
            （<el-radio-group v-model="form4.unit" class="split-radio">
              <el-radio :label="0">μGy</el-radio>
              <el-radio :label="1">mGy</el-radio>
            </el-radio-group>）
          </td>
					<td colspan="5" width="43%">
            辐射输出量测量值K（{{ form4.unit == 1 ? 'mGy/mAs' : 'μGy/mAs' }}）
          </td>
					<td width="150px"><i>$\overline K$</i> <br> mGy/mAs</td>
					<td width="100px">重 复 性 <br> CV(%)</td>
				</tr>

				<tr>
					<td>
						<el-input v-model="form4.kerma_1"/>
					</td>
					<td>
						<el-input v-model="form4.kerma_2"/>
					</td>
					<td>
						<el-input v-model="form4.kerma_3"/>
					</td>
					<td>
						<el-input v-model="form4.kerma_4"/>
					</td>
					<td>
						<el-input v-model="form4.kerma_5"/>
					</td>
					<td class="result" width="8%">
						<span>{{form4.radiationOutput_1}}</span>
					</td>
					<td class="result" width="8%">
						<span>{{form4.radiationOutput_2}}</span>
					</td>
					<td class="result" width="8%">
						<span>{{form4.radiationOutput_3}}</span>
					</td>
					<td class="result" width="8%">
						<span>{{form4.radiationOutput_4}}</span>
					</td>
					<td class="result" width="8%">
						<span>{{form4.radiationOutput_5}}</span>
					</td>
					<td class="result">
						<span>{{form4.radiationOutputAverage}}</span>
					</td>
					<td class="result">
						<span>{{form4.repeatability}}</span>
					</td>
				</tr>
			</table>

			<div class="tip-50">
				重复性 cv≤10%。 <i>$CV = \frac{1}{\overline K} \sqrt{ \Sigma(K_i - \overline K)^2 / (n - 1)} \times 100\%$</i>
			</div>
		</div>

		<!-- 3.输出量线性------------------------------------------------------------------ -->
		<div id="table5">
			<div class="innertitle">
				3.输出量线性 <el-checkbox v-model="form5.testState">（状态检测无此项）</el-checkbox>
			</div>
			<table border="1" cellspacing="0" cellpadding="0" align="center">
				<tr>
					<td colspan="5">曝光条件设置值</td>
					<td colspan="3">检测结果</td>
				</tr>
				<tr>
					<td>kV</td>
					<td>mA</td>
					<td>s</td>
					<td>mAs</td>
					<td>焦点</td>
					<td>
            空气比释动能<br/>
            （<el-radio-group v-model="form5.unit" class="split-radio">
              <el-radio :label="0">μGy</el-radio>
              <el-radio :label="1">mGy</el-radio>
            </el-radio-group>）
          </td>
					<td>线性偏差，%</td>
					<td>线性</td>
				</tr>

				<tr>
					<td rowspan="4">
						<el-input v-model="form5.tubeVoltage"/>
					</td>
					<td>
						<el-input v-model="form5.tubeCurrent_mA_1"/>
					</td>
					<td>
						<el-input v-model="form5.tubeCurrent_s_1"/>
					</td>
					<td class="result">
						<el-input v-model="form5.tubeCurrent_mAs_1" disabled/>
					</td>
					<td>
						<el-radio-group v-model="form5.focus_1" class="split-radio">
							<el-radio :label="1">小焦点</el-radio><br/>
							<el-radio :label="2">大焦点</el-radio><br/>
							<el-radio :label="0">无大小焦点</el-radio>
						</el-radio-group>
					</td>
					<td>
						<el-input v-model="form5.kerma1_1"/>
					</td>
					<td class="result">
					</td>
					<td width="100px" class="result" rowspan="3">
						<span>{{form5.outputLinearity}}</span>
					</td>
				</tr>

				<tr>
					<td>
						<el-input v-model="form5.tubeCurrent_mA_2"/>
					</td>
					<td>
						<el-input v-model="form5.tubeCurrent_s_2"/>
					</td>
					<td class="result">
						<el-input v-model="form5.tubeCurrent_mAs_2" disabled/>
					</td>
					<td>
						<el-radio-group v-model="form5.focus_2" class="split-radio">
							<el-radio :label="1">小焦点</el-radio><br/>
							<el-radio :label="2">大焦点</el-radio><br/>
							<el-radio :label="0">无大小焦点</el-radio>
						</el-radio-group>
					</td>
					<td>
						<el-input v-model="form5.kerma2_1"/>
					</td>
					<td class="result">
						<span>{{form5.outputLinearity_1}}</span>
					</td>
				</tr>
				<tr>
					<td>
						<el-input v-model="form5.tubeCurrent_mA_3"/>
					</td>
					<td>
						<el-input v-model="form5.tubeCurrent_s_3"/>
					</td>
					<td class="result">
						<el-input v-model="form5.tubeCurrent_mAs_3" disabled/>
					</td>
					<td>
						<el-radio-group v-model="form5.focus_3" class="split-radio">
							<el-radio :label="1">小焦点</el-radio><br/>
							<el-radio :label="2">大焦点</el-radio><br/>
							<el-radio :label="0">无大小焦点</el-radio>
						</el-radio-group>
					</td>
					<td>
						<el-input v-model="form5.kerma3_1"/>
					</td>
					<td class="result">
						<span>{{form5.outputLinearity_2}}</span>
					</td>
				</tr>
			</table>
			<!-- <div class="tip-50">
				线性 <i>$L_{12} =( \overline K_1/I - \overline K_2 / I) / (\overline K_1 / I + \overline K_2 / I);$</i> 检测几何条件同管电压指示的偏离
			</div> -->
		</div>

		<!-- 4.有用线束半值层--------------------------------------------------------------------------------------- -->
		<div id="table3">
			<div class="innertitle">
				4.有用线束半值层
			</div>
			<div class="tip-30">
				管电压预置值= <el-input v-model="form3.tubeVoltage" class="input-line"/> kV；
				管电流预置值= <el-input v-model="form3.tubeCurrent" class="input-line"/>
				<el-radio-group v-model="form3.tubeCurrentUnit" class="split-radio">
					<el-radio :label="0">mA</el-radio> <span class="split">/</span>
					<el-radio :label="1">mAs</el-radio>
				</el-radio-group>；
				曝光时间预置值= <el-input v-model="form3.exposureTime" class="input-line"/>s；
				焦点：<el-radio-group v-model="form3.focus" class="split-radio">
					<el-radio :label="2">大焦点</el-radio>
					<el-radio :label="1">小焦点</el-radio>
					<el-radio :label="0">无大小焦点</el-radio>
				</el-radio-group>
			</div>

			<table border="1" cellspacing="0" cellpadding="0" align="center">
				<tr>
					<td width="10%">铝滤过片厚度(mm)</td>
					<td width="10%">
						0
					</td>
					<td width="20%">
						<div class="slash"></div>
					</td>
					<td width="20%">
						<div class="slash"></div>
					</td>
					<td width="20%">
						<div class="slash"></div>
					</td>
					<td width="20%">
						<div class="slash"></div>
					</td>
				</tr>

				<tr>
					<td>空气比释动能（μGy）</td>
					<td>
						<div class="slash"></div>
					</td>
					<td>
						<div class="slash"></div>
					</td>
					<td>
						<div class="slash"></div>
					</td>
					<td>
						<div class="slash"></div>
					</td>
					<td>
						<div class="slash"></div>
					</td>
				</tr>
			</table>

			<div class="tip-50">
				<el-checkbox v-model="form3.notCalculate">直接读取检测仪器有用线束的半值层测量值</el-checkbox><br/>
				有用线束的半值层（HVL）=<el-input v-model="form3.readoutValueHVL" style="width: 50px; height: 15px;"/> mmAI;
				<!-- 修约值（HVL）=<el-input v-model="form3.roundingOffValueHVL" style="width: 50px; height: 15px;"/> mmAI -->
				修约值（HVL）= <span class="result">{{form3.roundingOffValueHVL}}</span> mmAI
			</div>
		</div>

		<!-- 5.曝光时间指示的偏离------------------------------------------------------------------------ -->
		<div id="table2">
			<div class="innertitle">
				5.曝光时间指示的偏离
				(<el-checkbox v-model="form2.testState">状态检测无此项</el-checkbox>)
				(<el-checkbox v-model="form2.notHave">无法单独调节曝光时间</el-checkbox>)
			</div>

			<!-- （<el-radio-group v-model="form.thyroidShielding">
				<el-radio :label="1">状态检测无此项</el-radio>
				<el-radio :label="0" style="margin-right: 0">设备无此项功能</el-radio>
			</el-radio-group>） -->
			<!-- （
				<el-checkbox v-model="form2.testState">状态检测无此项</el-checkbox>
				<el-checkbox v-model="form2.notHave">设备无此项功能</el-checkbox>
			） -->

			<table id="table1_form1" border="1" cellspacing="0" cellpadding="0" align="center">
				<tr>
					<td colspan="3">预置值</td>
					<!-- <td>检测条件</td> -->
					<td colspan="3">曝光时间测量值（ms）</td>
					<td>平均值</td>
					<td rowspan="2" style="width: 80px;">偏差<i>$E_t$</i></td>
				</tr>
				<tr>
					<td>管电压<i>$V_0$</i><br/>（kV）</td>
					<td>
						管电流/<br/>
						管电流时间积<br/>
						(<el-radio-group v-model="form2.tubeCurrentUnit" class="split-radio">
							<el-radio :label="0">mA</el-radio>
							<el-radio :label="1">mAs</el-radio>
						</el-radio-group>)
					</td>
					<!-- <td>检测条件</td> -->
					<td>
						曝光时间<i>$t_0$</i><br/>
						(ms)
					</td>
					<td><i>$t_1$</i></td>
					<td><i>$t_2$</i></td>
					<td><i>$t_3$</i></td>
					<td><i>$\overline V_i$</i></td>
				</tr>

				<tr>
					<td>
						<el-input v-model="form2.tubeVoltage_1"/>
					</td>
					<td>
						<el-input v-model="form2.tubeCurrent_1"/>
					</td>
					<td>
						<el-input v-model="form2.presets_1"/>
					</td>
					<td>
						<el-input v-model="form2.value_1_1"/>
					</td>
					<td>
						<el-input v-model="form2.value_1_2"/>
					</td>
					<td>
						<el-input v-model="form2.value_1_3"/>
					</td>
					<td class="result">
						<el-input v-model="form2.average_1" disabled/>
					</td>
					<td class="result">
						<span>{{form2.exposureTimeDeviation_1}}</span>
						<span v-if="form2.exposureTimeDeviation_1">%</span>
					</td>
				</tr>
				<tr>
					<td>
						<el-input v-model="form2.tubeVoltage_2"/>
					</td>
					<td>
						<el-input v-model="form2.tubeCurrent_2"/>
					</td>
					<td>
						<el-input v-model="form2.presets_2"/>
					</td>
					<td>
						<el-input v-model="form2.value_2_1"/>
					</td>
					<td>
						<el-input v-model="form2.value_2_2"/>
					</td>
					<td>
						<el-input v-model="form2.value_2_3"/>
					</td>
					<td class="result">
						<el-input v-model="form2.average_2" disabled/>
					</td>
					<td class="result">
						<span>{{form2.exposureTimeDeviation_2}}</span>
						<span v-if="form2.exposureTimeDeviation_2">%</span>
					</td>
				</tr>
			</table>

			<div class="tip-50">
				<i>
					公式：$ \frac{1}{\overline K} \sqrt{ \Sigma(K_i - \overline K)^2 / (n - 1)}$*100%
				</i>
			</div>
		</div>

		<!-- 6.AEC响应------------------------------------------------------------------ -->
		<div id="table8">
			<div class="innertitle">
				6.AEC响应
				(<el-checkbox
					v-model="form8.notHave"
					@change="(value) => {
						if (value) {
							form7.notHave = true
							form9.notHave_1 = true
						} else {
							form7.notHave = false
							form9.notHave_1 = false
						}
						submitTestForm(7)
						submitTestForm(9)
					}"
				>该机无自动照射量控制功能</el-checkbox>)
				<!-- (SDD = <el-input v-model="form.aceSdd" class="input-line" @change="submitTestForm('form')"/> cm) -->
				<!-- (SID = <el-input v-model="form.aceSid" class="input-line" @change="submitTestForm('form')"/> cm) -->
			</div>

			<table border="1" cellspacing="0" cellpadding="0" align="center">
				<!-- μGy -->
				<tr>
					<td width="90px">探测器类型</td>
					<td width="70px">SID</td>
					<td width="180px">衰减体</td>
					<td>管电压<br/>（kV）</td>
					<td>管电流时<br/>间积(mAs)</td>
					<td>仪器读数<i>$K_0$</i><br/>（μGy）</td>
					<td width="10%">校准因子<br/>f</td>
					<td width="10%">修正值K<br/>（μGy）</td>
					<td width="10%">平均值<br/>（μGy）</td>
					<td width="10%">偏差E(%)</td>
				</tr>

				<tr>
					<td rowspan="2">
						<el-checkbox v-model="form8.flatBed" @change="(value) => {
              form7.flatBed = value
              form9.flatBed = value
              submitTestForm(7)
              submitTestForm(9)
            }">平床</el-checkbox>
					</td>
					<td rowspan="2">
						<el-input v-model="form8.sid_1" @change="(value) => {
              form7.sid_1 = value
              form9.sid_1 = value
              submitTestForm(7)
              submitTestForm(9)
            }"/>
					</td>
					<td>
						20mm铝板
					</td>
					<td>
						<el-input v-model="form8.tubeVoltage_1"/>
					</td>
					<td>
						<el-input v-model="form8.tubeCurrent_1"/>
					</td>
					<td>
						<el-input v-model="form8.kerma_1"/>
					</td>
					<td class="result">
						{{ form8.calibrationFactor_1 }}
					</td>
					<td class="result">
						{{ form8.correctedValue_1 }}
					</td>
					<td rowspan="2" class="result">
						{{ form8.average }}
					</td>
					<td class="result">
						{{ form8.responseResult_1 }}
					</td>
				</tr>

				<tr>
					<td>
						20mm铝板+1.5mm铜板
					</td>
					<td>
						<el-input v-model="form8.tubeVoltage_2"/>
					</td>
					<td>
						<el-input v-model="form8.tubeCurrent_2"/>
					</td>
					<td>
						<el-input v-model="form8.kerma_2"/>
					</td>
					<td class="result">
						{{ form8.calibrationFactor_2 }}
					</td>
					<td class="result">
						{{ form8.correctedValue_2 }}
					</td>
					<td class="result">
						{{ form8.responseResult_2 }}
					</td>
				</tr>

				<tr>
					<td rowspan="2">
						<el-checkbox v-model="form8.sternumStand" @change="(value) => {
              form7.sternumStand = value
              form9.sternumStand = value
              submitTestForm(7)
              submitTestForm(9)
            }">胸片架</el-checkbox>
					</td>
					<td rowspan="2">
						<el-input v-model="form8.sid_2" @change="(value) => {
              form7.sid_2 = value
              form9.sid_2 = value
              submitTestForm(7)
              submitTestForm(9)
            }" />
					</td>
					<td>
						20mm铝板
					</td>
					<td>
						<el-input v-model="form8.tubeVoltage_3"/>
					</td>
					<td>
						<el-input v-model="form8.tubeCurrent_3"/>
					</td>
					<td>
						<el-input v-model="form8.kerma_3"/>
					</td>
					<td class="result">
						{{ form8.calibrationFactor_3 }}
					</td>
					<td class="result">
						{{ form8.correctedValue_3 }}
					</td>
					<td rowspan="2" class="result">
						{{ form8.average2 }}
					</td>
					<td class="result">
						{{ form8.responseResult_3 }}
					</td>
				</tr>

				<tr>
					<td>
						20mm铝板+1.5mm铜板
					</td>
					<td>
						<el-input v-model="form8.tubeVoltage_4"/>
					</td>
					<td>
						<el-input v-model="form8.tubeCurrent_4"/>
					</td>
					<td>
						<el-input v-model="form8.kerma_4"/>
					</td>
					<td class="result">
						{{ form8.calibrationFactor_4 }}
					</td>
					<td class="result">
						{{ form8.correctedValue_4 }}
					</td>
					<td class="result">
						{{ form8.responseResult_4 }}
					</td>
				</tr>
			</table>
			<div class="tip-50">
				修正值：<i>$K = K_0 \times f$</i>
				偏差：<i>$\frac{K - \overline K}{\overline K} \times 100$%</i>
			</div>
		</div>

		<!-- 7.AEC重复性------------------------------------------------------------------ -->
		<div id="table7">
			<div class="innertitle">
				7.AEC重复性
				(<el-checkbox
					v-model="form7.notHave"
					@change="(value) => {
						if (value) {
							form8.notHave = true
							form9.notHave_1 = true
						} else {
							form8.notHave = false
							form9.notHave_1 = false
						}
						submitTestForm(8)
						submitTestForm(9)
					}"
				>该机无自动照射量控制功能</el-checkbox>)
				<!-- (SDD = <el-input v-model="form.aceSdd" class="input-line" @change="submitTestForm('form')"/> cm) -->
				<!-- (SID = <el-input v-model="form.aceSid" class="input-line" @change="submitTestForm('form')"/> cm) -->
			</div>

			<table border="1" cellspacing="0" cellpadding="0" align="center">
				<tr>
					<td rowspan="2" width="90px">探测器类型</td>
					<td rowspan="2" width="70px">SID</td>
					<td rowspan="2" width="100px">衰减体</td>
					<td rowspan="2">管电压预置值<br/>（kV）</td>
					<td colspan="5">
						<el-radio-group v-model="form7.tubeCurrentUnit" class="split-radio">
							<el-radio :label="0">mAs</el-radio> <span class="split">/</span>
							<el-radio :label="1">DDI</el-radio>
						</el-radio-group>
						<!-- (<el-input v-model="form7.ddi" class="input-line"/>) -->
					</td>
					<td rowspan="2">重复性CV（%）</td>
				</tr>
				<tr>
					<td><i>$D_1$</i></td>
					<td><i>$D_2$</i></td>
					<td><i>$D_3$</i></td>
					<td><i>$D_4$</i></td>
					<td><i>$D_5$</i></td>
				</tr>
				<tr>
					<td>
						<el-checkbox v-model="form7.flatBed" @change="(value) => {
              form8.flatBed = value
              form9.flatBed = value
              submitTestForm(8)
              submitTestForm(9)
            }">平床</el-checkbox>
					</td>
					<td>
						<el-input v-model="form7.sid_1" @change="(value) => {
              form8.sid_1 = value
              form9.sid_1 = value
              submitTestForm(8)
              submitTestForm(9)
            }"/>
					</td>
					<td>
						20mm铝板
					</td>
					<td>
						<el-input v-model="form7.tubeVoltage"/>
					</td>
					<td>
						<el-input v-model="form7.detectedConditionValue1"/>
					</td>
					<td>
						<el-input v-model="form7.detectedConditionValue2"/>
					</td>
					<td>
						<el-input v-model="form7.detectedConditionValue3"/>
					</td>
					<td>
						<el-input v-model="form7.detectedConditionValue4"/>
					</td>
					<td>
						<el-input v-model="form7.detectedConditionValue5"/>
					</td>
					<td class="result">
						<span>{{form7.aecrepeatability}}</span>
					</td>
				</tr>

				<tr>
					<td>
						<el-checkbox v-model="form7.sternumStand" @change="(value) => {
              form8.sternumStand = value
              form9.sternumStand = value
              submitTestForm(8)
              submitTestForm(9)
            }">胸片架</el-checkbox>
					</td>
					<td>
						<el-input v-model="form7.sid_2" @change="(value) => {
              form8.sid_2 = value
              form9.sid_2 = value
              submitTestForm(8)
              submitTestForm(9)
            }"/>
					</td>
					<td>
						20mm铝板
					</td>
					<td>
						<el-input v-model="form7.tubeVoltage2"/>
					</td>
					<td>
						<el-input v-model="form7.detectedConditionValue2_1"/>
					</td>
					<td>
						<el-input v-model="form7.detectedConditionValue2_2"/>
					</td>
					<td>
						<el-input v-model="form7.detectedConditionValue2_3"/>
					</td>
					<td>
						<el-input v-model="form7.detectedConditionValue2_4"/>
					</td>
					<td>
						<el-input v-model="form7.detectedConditionValue2_5"/>
					</td>
					<td class="result">
						<span>{{form7.aecrepeatability2}}</span>
					</td>
				</tr>
			</table>
			<div class="tip-50">
				重复性：<i>$CV = 1 / D \sqrt { \sum (D_i - D) ^ 2 / (n - 1) } \times 100\%$</i>
			</div>
		</div>

		<!-- 8.AEC电离室之间一致性------------------------------------------------------------------ -->
		<div id="table9">
			<div class="innertitle">
				8.AEC 电离室之间一致性
				(<el-checkbox
					v-model="form9.notHave_1"
					@change="(value) => {
						if (value) {
							form7.notHave = true
							form8.notHave = true
						} else {
							form7.notHave = false
							form8.notHave = false
						}
						submitTestForm(7)
						submitTestForm(8)
					}"
				>该机无自动照射量控制功能</el-checkbox>)
				(<el-checkbox v-model="form9.notHave_2">该机属单一电离室，检测无此项</el-checkbox>)
				<!-- (SDD = <el-input v-model="form.aceSdd" class="input-line" @change="submitTestForm('form')"/> cm) -->
				<!-- (SID = <el-input v-model="form.aceSid" class="input-line" @change="submitTestForm('form')"/> cm) -->
			</div>

			<div class="tip-30">
				预置条件:<el-input v-model="form9.tubeVoltage" class="input-line"/>kV/AEC条件下曝光;
				附加滤过:1mmCu
				<!-- <el-radio-group v-model="form9.tubeCurrentUnit" class="split-radio">
					<el-radio :label="0">mA</el-radio> <span class="split">/</span>
					<el-radio :label="1">mAs</el-radio>
				</el-radio-group>； -->
			</div>

			<table border="1" cellspacing="0" cellpadding="0" align="center">
				<tr>
					<td width="90px">探测器类型</td>
					<td width="70px">SID</td>
					<td width="70px">过滤</td>
					<td width="70px">kV</td>
					<td style="width: 220px;">电离室状态</td>
					<td>左</td>
					<td>中心</td>
					<td>右</td>
					<td width="20%">平均值</td>
					<td width="20%">一致性，%</td>
				</tr>

				<tr>
					<td>
						<el-checkbox v-model="form9.flatBed" @change="(value) => {
              form7.flatBed = value
              form8.flatBed = value
              submitTestForm(7)
              submitTestForm(8)
            }">平床</el-checkbox>
					</td>
					<td>
						<el-input v-model="form9.sid_1" @change="(value) => {
              form7.sid_1 = value
              form8.sid_1 = value
              submitTestForm(7)
              submitTestForm(8)
            }"/>
					</td>
					<td>1mmCu</td>
					<td><el-input v-model="form9.tubeVoltage"/></td>
					<td>
						<el-radio-group v-model="form9.tubeCurrentUnit" class="split-radio">
							<el-radio :label="0">mAs</el-radio> <span class="split">/</span>
							<el-radio :label="1">DDI</el-radio>
						</el-radio-group>
						<!-- (<el-input v-model="form9.ddi" class="input-line"/>) -->
					</td>
					<td><el-input v-model="form9.exposureValue_a"/></td>
					<td><el-input v-model="form9.exposureValue_b"/></td>
					<td><el-input v-model="form9.exposureValue_c"/></td>
					<td class="result">
						<span>{{form9.average}}</span>
					</td>
					<td class="result">
						<span>{{form9.averageDeviation}}</span>
					</td>
				</tr>

				<tr>
					<td>
						<el-checkbox v-model="form9.sternumStand" @change="(value) => {
              form7.sternumStand = value
              form8.sternumStand = value
              submitTestForm(7)
              submitTestForm(8)
            }">胸片架</el-checkbox>
					</td>
					<td>
						<el-input v-model="form9.sid_2" @change="(value) => {
              form7.sid_2 = value
              form8.sid_2 = value
              submitTestForm(7)
              submitTestForm(8)
            }"/>
					</td>
					<td>1mmCu</td>
					<td><el-input v-model="form9.tubeVoltage2"/></td>
					<td>
						<el-radio-group v-model="form9.tubeCurrentUnit2" class="split-radio">
							<el-radio :label="0">mAs</el-radio> <span class="split">/</span>
							<el-radio :label="1">DDI</el-radio>
						</el-radio-group>
						<!-- (<el-input v-model="form9.ddi2" class="input-line"/>) -->
					</td>
					<td><el-input v-model="form9.exposureValue_a2"/></td>
					<td><el-input v-model="form9.exposureValue_b2"/></td>
					<td><el-input v-model="form9.exposureValue_c2"/></td>
					<td class="result">
						<span>{{form9.average2}}</span>
					</td>
					<td class="result">
						<span>{{form9.averageDeviation2}}</span>
					</td>
				</tr>
			</table>
			<!-- <div class="tip-50">
				平均值偏差：<i>$E_c = (C_i - \overline C) / \overline C \times 100 \%$</i>
			</div> -->
		</div>

		<!-- 9.有用线束垂直度偏离：------------------------------------------------------------------ -->
		<div id="table6">
			<div class="innertitle">
				9.有用线束垂直度偏离：
        （
        <el-checkbox v-model="form6.lightFieldAdjustState">光野灯无法调节</el-checkbox>
        <el-checkbox v-model="form6.cannotShowImage">无图像显示</el-checkbox>
        ）
			</div>
			<!-- （ <el-checkbox v-model="form6.cannotDecubitus"> 该设备无法将影像接受器设置成卧位曝光状态</el-checkbox> ） -->

			<!-- <div class="tip-30">
				管电压：<el-input v-model="form6.tubeVoltage" class="input-line"/> kV；
				管电流= <el-input v-model="form6.tubeCurrent" class="input-line"/>
				<el-radio-group v-model="form6.tubeCurrentUnit" class="split-radio">
					<el-radio :label="0">mA</el-radio> <span class="split">/</span>
					<el-radio :label="1">mAs</el-radio>
				</el-radio-group>；
			</div> -->
			<table border="1" cellspacing="0" cellpadding="0" align="center">
				<tr>
					<td width="20%">焦点至影像接收器距离（SID）</td>
					<td colspan="3" width="70%">有用线束垂直度偏离</td>
				</tr>
				<tr>
					<td rowspan="3" width="20%">
						<el-radio-group v-model="form6.sidType" class="split-radio">
							<el-radio :label="0">100cm</el-radio>
							<el-radio :label="1">其他<el-input class="input-line" v-model="form6.sid"/>cm</el-radio>
						</el-radio-group>
					</td>
					<td>
						<el-radio v-model="form6.verticality" :label="3">钢珠影像落在大圆外（>3.0°）</el-radio>
					</td>
					<td>
						<el-radio v-model="form6.verticality" :label="2">钢珠影像落在大圆内（<3.0°）</el-radio>
					</td>
					<td>
						<el-radio v-model="form6.verticality" :label="1">钢珠影像落在小圆内（<1.5°）</el-radio>
					</td>
				</tr>
			</table>

			<!-- 10.光野与照射野四边的偏离：------------------------------------------------------------------ -->
			<div class="innertitle">
				10.光野与照射野四边的偏离：
        （
        <el-checkbox v-model="form6.lightFieldAdjustState">光野灯无法调节</el-checkbox>
        <el-checkbox v-model="form6.cannotShowImage">无图像显示</el-checkbox>
        ）
			</div>
			<table border="1" cellspacing="0" cellpadding="0" align="center">
				<tr>
					<td rowspan="2" colspan="2" width="20%">焦点至影像接收器距离（SID）</td>
					<td colspan="4" width="70%">光野与照射野四边的偏离（cm）</td>
				</tr>
				<tr>
					<td width="100px">a1</td>
					<td width="100px">a2</td>
					<td width="100px">b1</td>
					<td width="100px">b2</td>
				</tr>

				<tr>
					<td rowspan="3" width="20%">
						<el-radio-group v-model="form6.sidType" class="split-radio">
							<el-radio :label="0">100cm</el-radio>
							<el-radio :label="1">其他<el-input class="input-line" v-model="form6.sid"/>cm</el-radio>
						</el-radio-group>
					</td>
					<td>摆放显示值</td>
					<td>
						<el-input v-model="form6.lightFieldPosition_a1"/>
					</td>
					<td>
						<el-input v-model="form6.lightFieldPosition_a2"/>
					</td>
					<td>
						<el-input v-model="form6.lightFieldPosition_b1"/>
					</td>
					<td>
						<el-input v-model="form6.lightFieldPosition_b2"/>
					</td>
				</tr>

				<tr>
					<td>测量值</td>
					<td>
						<el-input v-model="form6.observationPosition_a1"/>
					</td>
					<td>
						<el-input v-model="form6.observationPosition_a2"/>
					</td>
					<td>
						<el-input v-model="form6.observationPosition_b1"/>
					</td>
					<td>
						<el-input v-model="form6.observationPosition_b2"/>
					</td>
				</tr>
				<tr>
					<td>偏差</td>
					<td class="result">
						<span>{{form6.resultValue_a1}}</span>
					</td>
					<td class="result">
						<span>{{form6.resultValue_a2}}</span>
					</td>
					<td class="result">
						<span>{{form6.resultValue_b1}}</span>
					</td>
					<td class="result">
						<span>{{form6.resultValue_b2}}</span>
					</td>
				</tr>
			</table>
		</div>
  </div>
</template>

<script>
import { getInfoById, saveInfo04, tubeVoltage, exposureTime, updateTubeVoltage,
	outputRepeatability, outputLinearity, radiationField,
	aecRepeatability, aecResponse, AECConsistence} from "@/api/testItem/item04";

export default {
  name: "testItem04",
  data() {
    return {
			form: {

			},
			// 表单-1.管电压指示的偏离
			form1: {

			},
			// 表单-2.曝光时间指示的偏离
			form2: {

			},
			// 表单-3.有用线束半值层
			form3: {

			},
			// 表单-4.输出量重复性
			form4: {

			},
			// 表单-5.输出量线性
			form5: {

			},
			// 表单-6.有用线束垂直度偏离、光野与照射野四边的偏离
			form6: {

			},
			// 表单-7.AEC重复性
			form7: {

			},
			// 表单-8.AEC响应
			form8: {

			},
			// 表单-9.AEC电离室之间一致性
			form9: {

			},
			itemsId: null,
    };
  },
  props: {
		// 基本信息数据
    basicForm: {
			type: Object,
      default: () => {
				return {}
			},
    },
  },
  created() {
		this.$nextTick(()=>{
			// 获取详情
			getInfoById(this.basicForm.resultId).then(response => {
				this.itemsId =  response.data?.itemsId;
				this.form = {
					sdd: response.data?.sdd,
					aceSdd: response.data?.aceSdd,
					aceSid: response.data?.aceSid,
					sid: response.data?.sid,
					aec: response.data?.aec,
					sternumStand: response.data?.sternumStand,
					flatBed: response.data?.flatBed,
				};
				// 1.管电压指示的偏离
				this.form1 =  response.data?.tubeVoltageObj || {};
				this.changeTrColor(response.data?.tubeVoltageObj?.standard)
				// 2.曝光时间指示的偏离
				this.form2 =  response.data?.exposureTimeObj || {};
				// this.$set(this.form2, "tubeCurrentUnit", 1);
				// 3.有用线束半值层
				this.form3 =  response.data?.halfValueLayerObj || {};
				// this.$set(this.form3, "tubeCurrentUnit", 1);
				// 4.输出量重复性
				this.form4 =  response.data?.outputRepeatabilityObj || {};
				// this.$set(this.form4, "tubeCurrentUnit", 1);
				// 5.输出量线性
				this.form5 =  response.data?.outputLinearityObj || {};
				if(this.form5.tubeVoltage) {
					this.$set(this.form5, "cus_tubeVoltage", this.form5.tubeVoltage == "80" ? "80" : "other");
				}
				// 6.有用线束垂直度偏离、光野与照射野四边的偏离
				this.form6 =  response.data?.verticalityLightRadiationFieldObj || {};
				// this.$set(this.form6, "tubeCurrentUnit", 1);
				// 7.AEC重复性
				this.form7 =  response.data?.aecRepeatabilityObj || {};
				if(this.form7.tubeVoltage) {
					this.$set(this.form7, "cus_tubeVoltage", this.form7.tubeVoltage == "80" ? "80" : "other");
				}
				// 8.AEC响应
				this.form8 =  response.data?.aecResponseObj || {};
				if (this.form8.tubeVoltage_1) {
					this.$set(this.form8, "cus_tubeVoltage_1", this.form8.tubeVoltage_1 == "80" ? "80" : "other");
				}
				if (this.form8.tubeVoltage_2) {
					this.$set(this.form8, "cus_tubeVoltage_2", this.form8.tubeVoltage_2 == "80" ? "80" : "other");
				}
				// 9.AEC电离室之间一致性
				this.form9 =  response.data?.aecConsistenceObj || {};
			}).catch((response) => {
				this.$emit("loadingchange", true);
			});
			// 绑定请求---统一信息
			let formInputs = [];
			let arr = document.getElementsByClassName("forminput");
			for (let i = 0; i < arr.length; i++) {
				formInputs.push(...arr[i].getElementsByTagName("input"));
			}
			for (let i = 0; i < formInputs.length; i++) {
				this.bind(formInputs[i], () => {
					this.submitTestForm("form")
				})
			}

			// 绑定请求---表格
			let itemsLength = 9;
			for (let index = 0; index < itemsLength; index++) {
				let tableInputs = document.getElementById(`table${index + 1}`).getElementsByTagName("input");
				for (let i = 0; i < tableInputs.length; i++) {
					this.bind(tableInputs[i], () => {
						this.submitTestForm(index + 1)
					})
				}
			}

			this.initData()
		})
  },
  methods: {
		// 初始化数据
		initData() {
			this.$nextTick(() => {

			})
		},
		/**
		 * 表格添加超出值整行标红
		 * @param {*} contrastValue 对比值
		 * @param {*} formValue 绑定form
		 */
		changeTrColor(contrastValue, formValue = 'form1', bindTableId = 'table1_form1') {
			let options = [
				{row: 1, bindValue: 'smallFocusDeviate_1'},
				{row: 2, bindValue: 'smallFocusDeviate_2'},
				{row: 3, bindValue: 'smallFocusDeviate_3'},
				{row: 4, bindValue: 'smallFocusDeviate_4'},
				{row: 5, bindValue: 'bigFocusDeviate_1'},
				{row: 6, bindValue: 'bigFocusDeviate_2'},
				{row: 7, bindValue: 'bigFocusDeviate_3'},
				{row: 8, bindValue: 'bigFocusDeviate_4'},
			]

			let el = document.getElementById(bindTableId)
			// options.forEach(item => {
			// 	if(Number(this[formValue][item.bindValue]) > contrastValue) {
			// 		el.rows[item.row].className = 'error'
			// 	} else {
			// 		el.rows[item.row].classList.remove('error')
			// 	}
			// })
		},
		// 提交检测项信息-04
		submitTestForm(index) {
			this.$nextTick(() => {
				console.log("提交检测项04", index);
				this.$emit("loadingchange", true);
				if (index == "form") {
					this.form.itemsId = this.itemsId;
				} else {
					this[`form${index}`].itemsId = this.itemsId;
				}
				switch (index) {
					// 1.管电压指示的偏离
					case 1:
						tubeVoltage(this.form1).then((response) => {
							response.data ? this.form1 = response.data : "";
							this.changeTrColor(response.data.standard)
							this.$emit("loadingchange", false);
						})
						break;
					// 2.曝光时间指示的偏离
					case 2:
						exposureTime(this.form2).then((response) => {
							response.data ? this.form2 = response.data : "";
							this.$emit("loadingchange", false);
						})
						break;
					case 3:
						// 3.有用线束半值层
						updateTubeVoltage(this.form3).then((response) => {
							response.data ? this.form3 = response.data : "";
							this.$emit("loadingchange", false);
						})
						break;
					case 4:
						// 4.输出量重复性
						outputRepeatability(this.form4).then((response) => {
							response.data ? this.form4 = response.data : "";
							this.$emit("loadingchange", false);
						})
						break;
					case 5:
						// 5.输出量线性
						// this.form5.cus_tubeVoltage == "80" ? this.form5.tubeVoltage = "80" : "";
						// let cus_tubeVoltage5 = this.form5.cus_tubeVoltage;
						// outputLinearity(this.form5).then((response) => {
						// 	response.data ? this.form5 = response.data : "";
						// 	if(this.form5.tubeVoltage == "80") {
						// 		this.$set(this.form5, "cus_tubeVoltage", "80")
						// 	}else if(cus_tubeVoltage5 == "other") {
						// 		this.$set(this.form5, "cus_tubeVoltage", "other")
						// 	}
						// 	this.$emit("loadingchange", false);
						// })
						outputLinearity(this.form5).then((response) => {
							response.data ? this.form5 = response.data : "";
							this.$emit("loadingchange", false);
						})
						break;
					case 6:
						// 6.有用线束垂直度偏离、光野与照射野四边的偏离
						radiationField(this.form6).then((response) => {
							response.data ? this.form6 = response.data : "";
							this.$emit("loadingchange", false);
						})
						break;
					case 7:
						// 7.AEC重复性
						// this.form7.cus_tubeVoltage == "80" ? this.form7.tubeVoltage = "80" : "";
						// let cus_tubeVoltage7 = this.form7.cus_tubeVoltage;
						// aecRepeatability(this.form7).then((response) => {
						// 	response.data ? this.form7 = response.data : "";
						// 	if(this.form7.tubeVoltage == "80") {
						// 		this.$set(this.form7, "cus_tubeVoltage", "80")
						// 	}else if(cus_tubeVoltage7 == "other") {
						// 		this.$set(this.form7, "cus_tubeVoltage", "other")
						// 	}
						// 	this.$emit("loadingchange", false);
						// })
						aecRepeatability(this.form7).then((response) => {
							response.data ? this.form7 = response.data : "";
							this.$emit("loadingchange", false);
						})
						break;
					case 8:
						// 8.AEC响应
						// this.form8.cus_tubeVoltage_1 == "80" ? this.form8.tubeVoltage_1 = "80" : "";
						// this.form8.cus_tubeVoltage_2 == "80" ? this.form8.tubeVoltage_2 = "80" : "";
						// let cus_tubeVoltage81 = this.form8.cus_tubeVoltage_1;
						// let cus_tubeVoltage82 = this.form8.cus_tubeVoltage_2;
						// aecResponse(this.form8).then((response) => {
						// 	response.data ? this.form8 = response.data : "";
						// 	if(this.form8.tubeVoltage_1 == "80") {
						// 		this.$set(this.form8, "cus_tubeVoltage_1", "80")
						// 	}else if(cus_tubeVoltage81 == "other") {
						// 		this.$set(this.form8, "cus_tubeVoltage_1", "other")
						// 	}
						// 	if(this.form8.tubeVoltage_2 == "80") {
						// 		this.$set(this.form8, "cus_tubeVoltage_2", "80")
						// 	}else if(cus_tubeVoltage82 == "other") {
						// 		this.$set(this.form8, "cus_tubeVoltage_2", "other")
						// 	}
						// 	this.$emit("loadingchange", false);
						// })
						aecResponse(this.form8).then((response) => {
							response.data ? this.form8 = response.data : "";
							this.$emit("loadingchange", false);
						})
						break;
					case 9:
						// 9.AEC电离室之间一致性
						AECConsistence(this.form9).then((response) => {
							response.data ? this.form9 = response.data : "";
							this.$emit("loadingchange", false);
						})
						break;
					case "form":
						// 其余信息
						saveInfo04(this.form).then((response) => {
							this.$emit("loadingchange", false);
						})
						break;
				}
			})
		},
		// 更改电压
		changetube(val, index) {
			console.log("更改电压", val);
			if (val == "other" || !val) {
				if (index == "5") {
					this.$set(this.form5, "tubeVoltage", "");
				}
				if (index == "7") {
					this.$set(this.form7, "tubeVoltage", "");
				}
				if (index == "81") {
					this.$set(this.form8, "tubeVoltage_1", "");
				}
				if (index == "82") {
					this.$set(this.form8, "tubeVoltage_2", "");
				}
			}
		},
  },
};
</script>

<style lang="scss" scoped>
@import '../content.scss';
</style>
